package Month11.Day8;

public class Staff {
    private String name;//姓名
    private int age;//年龄
    private String sex;//性别
    private String post;//职务
    private int salary;//薪水
    private String JobNumber;//工号

    public Staff() {
    }

    public Staff(String name, int age, String sex, String post, int salary, String JobNumber) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.post = post;
        this.salary = salary;
        this.JobNumber=JobNumber;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public String getJobNumber() {
        return JobNumber;
    }

    public void setJobNumber(String jobNumber) {
        JobNumber = jobNumber;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "name=" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex + '\'' +
                ", post=" + post + '\'' +
                ", salary=" + salary +
                ", JobNumber=" + JobNumber + '\'' +
                '}';
    }
}

